home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / pgp20src.zip / IDEA.H < prev    next >
C/C++ Source or Header  |  1992-08-10  |  706b  |  26 lines

  1. /*    idea.h - header file for idea.c
  2. */
  3.  
  4. #include "usuals.h"  /* typedefs for byte, word16, boolean, etc. */
  5.  
  6. #define IDEAKEYSIZE 16
  7. #define IDEABLOCKSIZE 8
  8.  
  9.  
  10. void initcfb_idea(word16 iv0[4], byte key[16], boolean decryp);
  11. void ideacfb(byteptr buf, int count);
  12. void close_idea(void);
  13.  
  14. void init_idearand(byte key[16], byte seed[8], word32 tstamp);
  15. byte idearand(void);
  16. void close_idearand(void);
  17.  
  18.  
  19. /* prototypes for passwd.c */
  20.  
  21. /* getideakey - get pass phrase from user, hashes it to an IDEA key. */
  22. int getideakey(char *keystring, char *hash, boolean noecho);
  23.  
  24. /* hashpass - Hash pass phrase down to 128 bits (16 bytes). */
  25. void hashpass (char *keystring, int keylen, byte *hash);
  26.